<?php
if(!empty($model->music)){
	$media = $this->module->image['url'].'musics/'.$model->music;
	?>
	<embed height="100" width="100" src="<?php echo $media?>" autostart="true" loop="true" hidden="true"/>
	<?php
}
?>

<?php
$bg = '';
if(!empty($model->background)){
	$bgImg = $this->module->image['url'].'backgrounds/'.$model->background;
	$bg = "background:white url('".$bgImg."') repeat-y;background-size:100% auto;";
}
?>
<div style="min-height: 640px;<?php echo $bg ?>" id="bodyContent" class="grid_16 push_4">
	<div class="contentContainer">
		<div class="wd-detail-article">
			<div class="bg_white min_height_760"> 
				<h1><?php echo CHtml::encode($model->title) ?></h1>
				<div class="contentText">
					<div class="article">
						<?php echo $model->content ?>
						<div class="clr"></div>
						<div class="wd-other-news">
							<h3>Các sự kiện khác</h3>
							<ul>
								<?php foreach ($otherEvents as $event){ ?>
								<li><a href="<?php echo Yii::App()->createUrl('/events/view/'.$event->alias)?>"><?php echo $event->title?><!-- <span>(<?php echo Yii::app()->dateFormatter->format('d/M/yyyy',$event->created)?>)</span> --></a></li>
								<?php }?>
							</ul>
						</div>
						<div class="clr"></div>
					</div>
				</div>
				<div class="clear"></div> 
			</div> 
		</div><!--viva-->
	</div>
</div>
